#include "GMClientDisconnectRequest.h"
#include "GameMessageFactory.h"
#include "Server.h"

//IMPLEMENTATION
void GMClientDisconnectRequest::WriteToSckMsg( Networking::SockMsg* sm )
{
    sm->WriteInt(m_clientID);
}
bool GMClientDisconnectRequest::Execute()
{
    TheServer::Instance()->RemoveClient(m_clientID);
    return true;
}
bool GMClientDisconnectRequest::ReadFromSckMsg( Networking::SockMsg* sm )
{
    return sm->ReadInt(&m_clientID);
}
